package com.atmilan.quartz.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.atmilan.quartz.mapper.ImProductMapper;
import com.atmilan.quartz.model.entity.im.ImProduct;
import com.atmilan.quartz.service.IImProductService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

@Service
public class ImProductServiceImpl extends ServiceImpl<ImProductMapper, ImProduct> implements IImProductService {
    @Autowired
    ImProductMapper imProductMapper;

    @Override
    public void deleteAll() {
        imProductMapper.deleteAll();
    }

    @Override
    public void copyAll() {
        imProductMapper.deleteProductBack();
        imProductMapper.copyProductBack();
    }
    
}
